package com.wswy.wzcx.api

import com.wswy.wzcx.BuildConfig
import com.wswy.wzcx.module.GlobalConfigManager

/**
 * Created by wangduheng26 on 2018/4/19.
 * wangduheng26@gmail.com
 */
object ConfigsKt {

    @JvmStatic
    private fun WEBVIEW_BASE(): String {

        return (GlobalConfigManager.getInstance().sysConf.h5UrlPrefixConf?.value
                ?: BuildConfig.H5_WEB_URL) + "/"
    }

    @JvmStatic
    fun H5_ORDER_DETAIL() = WEBVIEW_BASE() + "peccancy/orderdetail?"//订单详情

    @JvmStatic
    fun H5_ORDER_LIST() = WEBVIEW_BASE() + "peccancy/orderlist.html?tab=%d&token=%s"//订单详情

    @JvmStatic
    fun H5_JSZXG() = WEBVIEW_BASE() + "regulation.html"//驾驶证新规

    @JvmStatic
    fun H5_PRO_WZDB() = WEBVIEW_BASE() + "weizhangdaijiaoxieyi.html"//违章代缴协议

    @JvmStatic
    fun H5_PRO_FKZB() = WEBVIEW_BASE() + "fakuandaijiaoxieyi.html"

    @JvmStatic
    fun H5_CJWT_WZDB() = WEBVIEW_BASE() + "weizhangfaq.html"

    @JvmStatic
    fun H5_CJWT_FKDJ() = WEBVIEW_BASE() + "fakuanfaq.html"

    @JvmStatic
    fun H5_TAB_12123() = WEBVIEW_BASE() + "faq.html?isapp=1"

    @JvmStatic
    fun H5_CUSTOMER_SERVICE() = WEBVIEW_BASE() + "singlepage/contactus.html?isapp=1"


    /**
     * 服务条款
     */
//    @JvmStatic
//    val H5_TERMS_OF_SERVICE = "http://wap.zqwzc.cn/single-page/app-user-protocol"

    //交通在线服务条款
    @JvmStatic
    val H5_TERMS_OF_SERVICE = "http://wap.zqwzc.cn/single-page/app-user-protocol"


    //交通在线隐私政策
    /**
     * 隐私政策
     */
//    @JvmStatic
//    val H5_PRIVACY_POLICY = "http://wap.zqwzc.cn/single-page/privacy-policy"
    @JvmStatic
    val H5_PRIVACY_POLICY = "http://wap.zqwzc.cn/single-page/privacy-policy"


}